home *** CD-ROM | disk | FTP | other *** search
- Path: hartwick.edu!atienzam
- From: atienzam@hartwick.edu (Michael A. Atienza)
- Newsgroups: comp.lang.c++
- Subject: Newbie question(s) on strings and assembly lang.
- Message-ID: <1996Feb21.235620.5532@hartwick.edu>
- Date: 21 Feb 96 23:56:20 -0500
- Organization: Hartwick College
-
-
-
- Hello, I need some help in reading in a file...
- Lets say that I have a data file that looks like this:
-
- |----Col1----|----Col2----|----Col3----|----Col4----|
- COPY ZERO OLDER
- COPY ONE OLD
- READ LIMIT
- NEXT LOAD OLDER
-
-
- and so on....
-
- Each column is 10 characters long...I want to read
- each row into 4 string variables of length 10 each...
- My problem is, that it doesn't read the 10 blank
- spaces; it actually skips it and dumps the second
- column value into the first string variable...it should
- read in the 10 blank spaces into the first string
- variable, and then read the second column in to the
- second string variable....how can i do this?????
-
- I am actually trying to do a symbolic table that will
- translate assembly language into the table, so my result
- should somewhat look like this:
-
- Symbol Address
- NEXT 10
- and so forth....
-
- Is there an easier way to do this????
-
- Any response(good or bad) will be appreciated....
-
-
- Cheers
- Mike
- atienzam@hartwick.edu
-
-